<template>
  <div class="searchColumn" @touchmove.stop.prevent>

    <!-- <search-box ref="searchBox" class="searchBox" @click="() => $router.push('/search')" @query="onQueryChange"></search-box> -->
    <div class="searchBox" @click="() => $router.push('/search')">
      <img src="~@/assets/images/manhua/sousuo@2x.png">
      <span>{{search_backgroud}}</span>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'home-search',
    props: {
      search_backgroud: {
        type: String,
        default() {
          return ''
        }
      }
    },
    data() {
      return {}
    },
    components: {},
    methods: {
      onQueryChange() {
        this.$router.push('/mine/message')
      }
    },
    computed: {}
  }

</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  @import "src/assets/css/mixin.scss";
  @import 'src/assets/css/variables.scss';
.searchColumn{
  display: flex;
  align-items: center;
  height: 30px;
  width: 100%;
  padding: 5px 10px;
  margin: 5px 0;
  .searchBox{
    display: flex;
    align-items: center;
    align-items: center;
    background:rgba(255,255,255,1);
    background-color: $color-inputBg;
    border-radius: 10px;
    opacity: 0.9;
    height: 30px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    img{
      width: 13px;
      margin: 0 10px;
    }
    span{
      flex: 1;
      font-size: 16px;
      text-align: center;
      line-height: 30px;
      display: inline-block;
      color: #AEB1C0;
      padding-right: 23px;
    }
  }
}
</style>
